<h1>Book\Book list</h1>

<table class="records_list" border="1" cellspacing="0" cellpadding="4">
    <thead>
        <tr>
            <th>Cover</th>
            <th>Title</th>
            <th>Press</th>
            <th>Published year</th>
            <th>Bestseller</th>
            <th>Rating</th>
            <th>Price</th>
            <th>View count</th>
            <th>Sold count</th>
            <th>ISBN</th>
            <th>Page count</th>
            <th>Language</th>
            <th>Actions</th>
        </tr>
    </thead>
    <tbody>
    {% for entity in entities %}
        <tr>
            <td><a href="{{ path('book_show', { 'id': entity.id }) }}"><img src="{{ entity.cover }}" height="80" /></a></td>
            <td>{{ entity.title }}</td>
            <td>{{ entity.press }}</td>
            <td>{{ entity.publishedYear }}</td>
            <td>{{ entity.bestseller }}</td>
            <td>{{ entity.rating }}</td>
            <td>{{ entity.price }}</td>
            <td>{{ entity.viewCount }}</td>
            <td>{{ entity.soldCount }}</td>
            <td>{{ entity.isbnCode }}</td>
            <td>{{ entity.pageCount }}</td>
            <td>{{ entity.language }}</td>
            <td>
                <ul>
                    <li>
                        <a href="{{ path('book_show', { 'id': entity.id }) }}">show</a>
                    </li>
                    <li>
                        <a href="{{ path('book_edit', { 'id': entity.id }) }}">edit</a>
                    </li>
                </ul>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

<ul>
    <li>
        <a href="{{ path('book_new') }}">
            Create a new entry
        </a>
    </li>
</ul>
